#include <stdio.h>    /*预处理*/

int main()     /*主函数*/
{
    int    a;
    char   b;    /*定义变量*/
    float   c;

    printf("Please input an integer:");   
    scanf("%d", &a);       /*输入整数并输出*/
    printf("integer:%d\n", a);

    rewind(stdin);    /*重新定位到文件的开头*/
    printf("Please input a character:");   
    scanf("%c", &b);       /*输入字符并输出*/
    printf("character:%c\n", b);

    printf("Please input a float number:");   
    scanf("%f", &c);       /*输入浮点数并输出*/
    printf("float:%f\n", c);

    return 0; 
}